package cqcvc.edu.cn.entity;

import java.util.Arrays;
import java.util.Date;

public class HouseInfo {
    private Long id;
    private String houseTitle;
    private Float housePrice;
    private String houseDetail;
    private byte[] housePic;
    private Date createDate;
    private Integer showOrder;
    private String ifShow;

    public HouseInfo() {
    }

    public HouseInfo(String houseTitle, Date createdate, Integer showOrder,
                     String ifShow) {
        this.houseTitle = houseTitle;
        this.createDate = createdate;
        this.showOrder = showOrder;
        this.ifShow = ifShow;
    }
    public HouseInfo(String houseTitle, Float housePrice, String houseDetail,
                     byte[] housePic, Date createdate, Integer showOrder, String ifShow) {
        this.houseTitle = houseTitle;
        this.housePrice = housePrice;
        this.houseDetail = houseDetail;
        this.housePic = housePic;
        this.createDate = createdate;
        this.showOrder = showOrder;
        this.ifShow = ifShow;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHouseTitle() {
        return houseTitle;
    }

    public void setHouseTitle(String houseTitle) {
        this.houseTitle = houseTitle;
    }

    public Float getHousePrice() {
        return housePrice;
    }

    public void setHousePrice(Float housePrice) {
        this.housePrice = housePrice;
    }

    public String getHouseDetail() {
        return houseDetail;
    }

    public void setHouseDetail(String houseDetail) {
        this.houseDetail = houseDetail;
    }

    public byte[] getHousePic() {
        return housePic;
    }

    public void setHousePic(byte[] housePic) {
        this.housePic = housePic;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createdate) {
        this.createDate = createdate;
    }

    public Integer getShowOrder() {
        return showOrder;
    }

    public void setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
    }

    public String getIfShow() {
        return ifShow;
    }

    public void setIfShow(String ifShow) {
        this.ifShow = ifShow;
    }

    @Override
    public String toString() {
        return "HouseInfo{" +
                "id=" + id +
                ", houseTitle='" + houseTitle + '\'' +
                ", housePrice=" + housePrice +
                ", houseDetail='" + houseDetail + '\'' +
                ", housePic=" + Arrays.toString(housePic) +
                ", createdate=" + createDate +
                ", showOrder=" + showOrder +
                ", ifShow='" + ifShow + '\'' +
                '}';
    }
}
